package com.cenntro.auth.model.vo;
import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.apache.commons.collections.functors.TruePredicate;

import com.cenntro.auth.utils.Valid;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder.Default;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色菜单关联表
 * </p>
 *
 * @author 
 * @since 2019-02-15
 */
@Data
@EqualsAndHashCode(callSuper =false)
@Accessors(chain = true)

@ApiModel(value="SysPermission对象", description="角色菜单关联表")
public class SysPermissionVO implements Serializable{

    private static final long serialVersionUId = 1L;

    @NotNull(message="permissionId不能是空", groups={Valid.update.class})
    @ApiModelProperty(value = "主键id")
    private Integer permissionId;

    @ApiModelProperty(value = "名称")
    @NotBlank(message="权限名称不能是空", groups={Valid.insert.class})
    private String name;
    
    @NotNull(message="权限状态不能是空", groups={Valid.insert.class})
    private Integer status;
    
    @ApiModelProperty(value = "父级id")
    private Integer pid;
    
    @ApiModelProperty(value = "备注")
    private String remark;
    
    @ApiModelProperty(value = "2模块 1菜单 0按钮")
    @NotNull(message="权限类型不能是空", groups={Valid.insert.class})
    private Integer type;
    
    @ApiModelProperty(value = "url")
    private String url;



}
